package com.lh.project.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.lh.project.common.BaseResponse;
import com.lh.project.model.entity.User;

import javax.servlet.http.HttpServletRequest;

/**
*
*/
public interface UserService extends IService<User> {

    long userRegister(String userAccount, String userPassword, String checkPassword);

    User userLogin(String userAccount, String userPassword, HttpServletRequest request);

    boolean userLogout(HttpServletRequest request);

    User getLoginUser(HttpServletRequest request);

    User getByOpenid(User user);

    User bindStuNumber(Long stuNumber, HttpServletRequest httpServletRequest);

    BaseResponse<String> login(User user);
}
